package com.springBoot.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;


@TableName("sys_dept")
public class SysDept {
    @TableId("id")
    private Double id;
    @TableField("pid")
    private Double pid;
    @TableField("name")
    private String name;
    @TableField("sort")
    private Integer sort;
    @TableField("creator")
    private Double creator;
    @TableField("create_date")
    private LocalDateTime createDate;
    @TableField("updater")
    private Double updater;
    @TableField("update_date")
    private LocalDateTime updateDate;


    public SysDept() {
    }

    public SysDept(Double id, Double pid, String name, Integer sort, Double creator, LocalDateTime createDate, Double updater, LocalDateTime updateDate) {
        this.id = id;
        this.pid = pid;
        this.name = name;
        this.sort = sort;
        this.creator = creator;
        this.createDate = createDate;
        this.updater = updater;
        this.updateDate = updateDate;
    }

    /**
     * 获取
     * @return id
     */
    public Double getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Double id) {
        this.id = id;
    }

    /**
     * 获取
     * @return pid
     */
    public Double getPid() {
        return pid;
    }

    /**
     * 设置
     * @param pid
     */
    public void setPid(Double pid) {
        this.pid = pid;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return sort
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * 设置
     * @param sort
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /**
     * 获取
     * @return creator
     */
    public Double getCreator() {
        return creator;
    }

    /**
     * 设置
     * @param creator
     */
    public void setCreator(Double creator) {
        this.creator = creator;
    }

    /**
     * 获取
     * @return createDate
     */
    public LocalDateTime getCreateDate() {
        return createDate;
    }

    /**
     * 设置
     * @param createDate
     */
    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }

    /**
     * 获取
     * @return updater
     */
    public Double getUpdater() {
        return updater;
    }

    /**
     * 设置
     * @param updater
     */
    public void setUpdater(Double updater) {
        this.updater = updater;
    }

    /**
     * 获取
     * @return updateDate
     */
    public LocalDateTime getUpdateDate() {
        return updateDate;
    }

    /**
     * 设置
     * @param updateDate
     */
    public void setUpdateDate(LocalDateTime updateDate) {
        this.updateDate = updateDate;
    }

    public String toString() {
        return "SysDept{id = " + id + ", pid = " + pid + ", name = " + name + ", sort = " + sort + ", creator = " + creator + ", createDate = " + createDate + ", updater = " + updater + ", updateDate = " + updateDate + "}";
    }
}
